<template>
  <el-button size="mini"
    @click="reduction()">
    <i class="fa-fw el-icon-refresh-right"></i>重置
  </el-button>
</template>

<script>
import { mapState, mapMutations } from 'vuex';
export default {
  name:'resetAll',

  date(){
    return {
      isDev: process.env.NODE_ENV == 'development',
    }
  },
  methods:{
    ...mapMutations([
      'resetParams'
    ]),
    reduction:function(){
      this.$confirm(
        `还原所有参数成初始状态`,
        {
          title:`还原确认`,
          dangerouslyUseHTMLString:true,
        }
      ).then((res)=> {
        this.resetParams();
        return 200
      }).catch(() => {
      });
    },
  },
}
</script>
<style></style>